﻿<view:WindowBase x:Class="SvnMonitor.Views.Shell.ShellView"
                 x:ClassModifier="internal"
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                 xmlns:view="clr-namespace:MVVMFramework.View;assembly=MVVMFramework.View"
                 mc:Ignorable="d" 
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:local="clr-namespace:SvnMonitor.Views.Shell"
                 WindowStartupLocation="CenterScreen"
                 ResizeMode="CanResizeWithGrip"
                 d:DataContext="{d:DesignInstance local:ShellVM}"
                 Loaded="shellView_OnLoaded"
                 Icon="/Images/Activity16.png"
                 SizeToContent="Height"
                 Title="{Binding Title}" Width="300">
    <Grid Margin="5">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <TextBlock Grid.ColumnSpan="3" FontWeight="Bold" FontSize="15" HorizontalAlignment="Center" Margin="10">
            <Run Text="Just click Run" />
        </TextBlock>

        <Button x:Name="btnRun" Content="Run" HorizontalAlignment="Center"
                Grid.Row="1" Grid.Column="0" Click="btnRun_Click" Margin="5"/>

        <TextBlock Text="The following projects will be monitored:" Grid.Row="2" Visibility="{Binding ProjectsLoaded, Converter={StaticResource VisibleIfTrue}}"/>
        <TextBlock Grid.Row="3" Text="{Binding Section.Project}" Visibility="{Binding ProjectsLoaded, Converter={StaticResource VisibleIfTrue}}"
                   ToolTip="{Binding Section.WorkingCopy}" Margin="5" FontWeight="Bold"/>
        
        <TextBlock HorizontalAlignment="Left" Grid.Row="4" VerticalAlignment="Bottom" Margin="5">
            <Hyperlink NavigateUri="" RequestNavigate="openLogs_OnRequestNavigate">
                Open directory Log files
            </Hyperlink>
        </TextBlock>

    </Grid>
</view:WindowBase>
